package cn.skyquant.quant4j.api.strategy;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class StrategyTestDailyDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    public int id;
    public Date thedate;
    public Double balance;
    public Double equity;
    public Double open;
    public Double close;
    public Double high;
    public Double low;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof StrategyTestDailyDTO)) return false;
        StrategyTestDailyDTO that = (StrategyTestDailyDTO) o;
        return id == that.id;
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
